package bairui.international.weixin.portal.miniapp.controller.user;

import javax.servlet.http.HttpServletRequest;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

import com.lianjing.sh.spring.web.controller.base.action.Action;
import com.lianjing.sh.spring.web.controller.enhance.output.FomatOutput;

import bairui.international.service.Service_User;
import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 *
 * 客户列表
 *
 * @generated
 * 
 * @see STest_C_User_CustomPage_Get 测试
 *
 */
@Controller
public class C_User_CustomPage_Get
 extends SC_User_CustomPage_Get 
{
	
	@Autowired private Service_User service_User;
	
	/**
	 * Get请求
	 */
	@Action(Get.class)
	@GetMapping(Get.RequestMappingValue)
	public @FomatOutput @ResponseBody Object get(
		ModelMap map, HttpServletRequest request,
		@RequestParam Integer startPage,
		@RequestParam String skey
	) throws Exception {
//		return service_User
//				.page(
//					it->it.prev.skey.eq(skey),
//					PageRequest.of(startPage, 6)
//				)
//				.map(it->new Output(it.getAvatarUrl(), it.getNickName(), it.getRealName() , it.getType().getComment()));
		return null;
	}
	
	@AllArgsConstructor
	public static class Output {
		private @Getter String imgUrl;
		private @Getter String nickName;
		private @Getter String realName;
		private @Getter String type;
	}

	

}
